package Level_one;

import java.util.Scanner;

public class Three {
    public static void main(String[] args) {
        //键盘上录入一个大于 100 的三位数,求出 100 到该数字之间满足如下要求的数字之和:
        System.out.println("请输入一个大于 100 的三位数");
        int num = new Scanner(System.in).nextInt();
        int sum = 0;
        for (int i = 100; i <= num; i++) {
            if (num % 10 != 7) {
                if (num % 100 / 10 != 5) {
                    if (num / 100 != 3) {
                        sum += i;
                    }
                }
            }
        }
        System.out.println("满足要求的数字之和为" + sum);
    }
}
